window.addEvent ('domready', function () {

	// Variables de Drags y Drops
	var $drags = $$('#drags div');
	var $drops = $$('#drops div ');

	// Creamos objeto tipo Drag and Drop Basico
	miDxD = new DxD.Base ($drags, $drops, {
		container: $('content'),
		dragDelete: true,
		sendToBack: 'back',
		adjDrags: [
			{ x: 10, y: 500 },
			{ x: 110, y: 500 },
			{ x: 210, y: 500 },
			{ x: 310, y: 500 },
			
			{ x: 410, y: 500 },
			{ x: 510, y: 500 },
			{ x: 610, y: 500 },
			{ x: 710, y: 500 }
		],
		adjDrops: [
			{ x: 10, y: 100 },
			{ x: 120, y: 100 },
			{ x: 230, y: 100 },
			{ x: 340, y: 100 },
			
			{ x: 450, y: 100 },
			{ x: 560, y: 100 },
			{ x: 670, y: 100 },
			{ x: 780, y: 100 }
		]
	});
	
	
	miDxD.fncTrueDrop = function ($objDrag, $objDrop) {
		if ($objDrag.ind%2 == $objDrop.ind%2) return true;
		else return false;
	};
	miDxD.addEvents ({
		'beforeStart': function ($objDrag) {
//			console.debug ($objDrag)
		},
		'falseDrop': function ($objDrag, $objDrop) {
//			console.debug ($objDrop)
		}
	})
});
